package com.polytech.business;

import java.util.List;

import com.polytech.model.Post;
import com.polytech.model.Topic;

public interface ForumManager {

	void createTopic(Topic topic,String userName);
	Topic findTopic(int id);
	List<Topic> findTheLastThreeTopics();
	List<Topic> findAllTopics();
    
	
	void createPost(Post post, int idTopic, String userName);
	Post findPost(int id); 
	List<Post> findAllTopicPosts(int idTopic);
	
}
